<div class="grid_7">
    <div class="box">
        <h2>
            <a href="#" id="toggle-tables"> PICKUP MAINTENENCE : <?= $pickup['info']->description; ?> </a>
        </h2>
        <div class="block" >
            <form name="admin-form" action="<?= base_url(); ?>admin/pickup/pickup_detail_submit" method="post">
                <fieldset>
                    <legend>Pickup : <?= $pickup['info']->description; ?> > NEW </legend>
                    <?php
                    if ($this->session->flashdata('message')) {
                        echo '<font color="red">' . $this->session->flashdata('message') . '</font>';
                    }
                    ?>
                    <div class="field">
                        <label> Pickup Description ( <?= $pickup['info']->description; ?> )</label>
                        <input type="hidden" name="pickup_code" value="<?= $pickup['info']->code; ?>"/>
                        <input type="text" name="pickup_description" size="75" />
                        <input type="submit" value="Add New" />
                        <a href="<?= base_url(); ?>admin/pickup/" class="link-button" > Back to Main </a>
                    </div>
                </fieldset>
            </form>

            <fieldset>
                <legend>List :</legend>
                <?php foreach ($pickup_detail as $pickup_detail): ?> 

                    <form name="pickup_update" method="POST" action="<?= base_url(); ?>admin/pickup/pickup_description_update">
                        <div class="field">
                            <input name ="code" type="hidden" size="10" value="<?= $pickup_detail->code; ?>" />
                            <input name ="slno" type="hidden" size="10" value="<?= $pickup_detail->slno; ?>" />
                            <input name ="description" type="text" size="75" value="<?= $pickup_detail->description; ?>" />
                            <input type="submit" value="Update" onclick="return confirm('Are you sure you want to Update?')" />
                            <div id="link-button" style="float: right">
                                <a href="<?= base_url(); ?>admin/pickup/pickup_description_delete/<?= $pickup_detail->code; ?>/<?= $pickup_detail->slno; ?>" class="link-button" onclick="return confirm('Are you sure you want to Delete?')"> Delete </a>
                            </div>
                        </div>
                    </form>

                <?php endforeach; ?>
            </fieldset>

        </div>
    </div> <!-- END OF BOX -->
</div>